package com.lqs.dataservice.dao;

import com.lqs.dataservice.entity.Army;
import com.lqs.dataservice.entity.User;
import com.nip.db.mongodb.GenericMongoDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ArmyDao
 *
 * @author < a href=" ">Gupeng</ a>
 * @version v1.0.01
 * @date 2019-12-27 11:13
 */
@Repository
public interface UserDao extends GenericMongoDao<User, String> {
  void  deleteAllByIdIn(List<String> ids);
  List<User> findAllUserByRemark(String remark);
  List<User> findAllByUserParentId(String id);
  List<User> findAllByUserParentIdAndRemark(String id,String remark);
  List<User> findAllByCode(String code);
  User findUserByCode(String code);
//  User findByCode(String code);

}
